#ifndef HUFFMAN_H
#define HUFFMAN_H

#include "simbolo.h"

#include <QString>
#include <QHash>
#include <QChar>
#include <QList>

class Huffman {
	public:
		void compress(const QString&);
	private:
		QHash<QChar, int>* calcolaOccorrenze(const QString&);
		QList<Simbolo>* costruisciArray(const QHash<QChar, int>&);
};

#endif
